package com.wipz.eoa.iphone.officesupplies;


import java.util.List;
import java.util.Map;
import java.util.HashMap;

import org.apache.commons.lang.StringUtils;

import com.wipz.eoa.iphone.BaseAction;

public class officesuppliesTakeoutAction extends BaseAction {
	private IOfficesuppliesTakeoutService officesuppliesTakeoutService;
	private List<Object> list;
	private Map<String,Object> view;
	public Map<String, Object> getView() {
		return view;
	}
	public void setView(Map<String, Object> view) {
		this.view = view;
	}
	public void setOfficesuppliesTakeoutService(
			IOfficesuppliesTakeoutService officesuppliesTakeoutService) {
		this.officesuppliesTakeoutService = officesuppliesTakeoutService;
	}
	public String list(){
		Map<String, Object> params =new HashMap<String,Object>();
		String userCode ="";
		params.put("COMMITERCODE", userCode);
		params.put("BILLCODE",getRequest().getParameter("BILLCODE"));
		params.put("CATEGORYCODE",getRequest().getParameter("CATEGORYCODE"));
		params.put("ISGET", getRequest().getParameter("ISGET"));
		params.put("APPLYDATE", getRequest().getParameter("APPLYDATE"));
		//排序
		params.put("order",getRequest().getParameter("order"));
		params.put("sort", getRequest().getParameter("sort"));
		list=officesuppliesTakeoutService.queryList("officesuppliesTakeout.queryList", params);
		return SUCCESS;
	}
	public List<Object> getList() {
		return list;
	}
	public void setList(List<Object> list) {
		this.list = list;
	}
	public String view(){
		String id=getRequest().getParameter("id");
		String userCode="";
		if(StringUtils.isNotEmpty(id)){
			Map params = new HashMap();
			params.put("ID",id);
			params.put("COMMITERCODE", userCode);
			view=(Map)officesuppliesTakeoutService.queryOne("officesuppliesTakeout.queryByID", params);
		}
		return SUCCESS;
	}
	
}
